Update the build script

The products were not copied when the base directory was not the project root.