Fix directory permissions.