fixed bug with relative-path-extraction