jpdaigle_osx_support

OSX support candidate. 
Removed dependency on /proc and readlink (unless I missed something, I don't think we really care whether the directory is a symlink or not, we can always read the dependency with the basedir of the symlink.)

I'm not sure the tests run cleanly on my system, I think there might be OSX wonkiness with `make test`?

Tested that it still works with a space in the script's directory name.