It would be nice to also have an option to get relative path. I'll implement it and make PR if I get some free time.