changed how many directories up we check the permissions for #376