Revert "Made printClickableFilename more robust"

This reverts commit 39dfa9311ba4c1eb470384540a516feeb7f8f6b3.