[backport-1.7]: MR "improve how ensure_toolbox replaces the ./bin directory" needs a 1.7.x backport
MR
!8870 (merged)
needs to be backported to 1.7.x