fixed osx.sh permissions