fix dir perms