fixed sourcemap generation for build script