make osx scripts more like the linux scripts