include relative path from cwd in shortnames

this is done so 2 files in 2 different folders with the same name are still distinguishable in the output
Merge pull request #362 from Janpot/patch-1

include relative path from cwd in shortnames