Optimise bootstrap script for OS X