fixed Dan's broken build script