Fix permissions for linux