Solves issue: Resolving absolute paths based on wrong assumption #3

Hello, this branch solves the above issue I opened earlier. I tried to follow your code notation, added a test case and updated README.md. Would be great if it gets merged in. Thanks.