Fix file permissions after restore

Refs #1129