Fix OSX file permissions.