better algorithm to parse path
Merge pull request #4 from dg-vrnetze/master

better algorithm to parse path