Ensure parent directories has the right perms.