fix paths for other operation systems like windows

Hi there,

thanks this repository. I found a little quirk on windows, where not every absolute path is beginnin with / on strpos 0. I put the generation of the full path in to the method which creates the paths which seems to be more perfomant.

This fixes the issue on windows.

Best regards
Philipp