fix chmod on mac