Fixed a bug with the restore script - was creating bad directories with .tar.gz in name