Fix ActionRemoteFile to work with restore