Made printClickableFilename more robust

You probably care more about the test failing than writing out the
filename.