Fixes bugs in run_custom_build_steps.