Modify bash files for OSX compatibility