replayshell.cc: Safety check directory name is not empty