Fix bug in build script

Build script did not escape backslashes correctly, so regex did not work
correctly - this caused great circle mode to not validate