Fixing bad path parsing

The node.js **path** module serves the same purpose, let's use it instead since jandoc was breaking on files with a dot in the name.