handle different OSX versions in permission check refs #562