Updated script to accept the location of the build folder as a command line argument.