tweaks to bash and .osx