Tweaked bootstrap script to work on OS X