bootstrap that works on OS X and Linux