better, safer bootstrap script for osx