make setup script work on a mac