Fix a bug where specifying an alternative restore directory with a trailing
slash would not work.