scons: create bin path first

Closes #26486.