Various bash scripts for use on Mac OS X