Fix bug with restore command paths