Minor fix for legacy restore (#9978)
Minor fix for legacy restore (#9978)

Restore would fail when file paths contained extra periods.
Taking the basename of the files fixes this.
nooproblem/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,li-ang/influxdb,nooproblem/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb