Fix permissions on restored files