Refactor configuration script into separate file "configure_build.sh"