More work on the Mac OS X remote-build script