Fix test case by being more lenient on what to accept as a path name.