Fix OSX permissions

Hopefully addresses #9010