Fix OS X compile.
Add appropriate command line argument.

I'm sure the working path was somewhere random before. Perhaps it will
revert back in future.
Add test.sh for running OS X debug build from command line.

Xcode puts the binary in such an annoying place.