Fix gear registry file permissions during backup/restore