Added optional source map output to the build script