Fixes file permissions.