fix issues with build script