Minor tweaks

I was working on a fix an issue I'm having with relative linking and figured out these minor tweaks could come first :)

It basically gets rid of some stuff I made on GH-2 to fix git reference linking on markdown files (cutting down the codebase by 7 lines :P) and simplify fixRelativeLinks signature