util: handle relative paths in get_path_component
Merge pull request #57 from Waldteufel/get_path_component

util: handle relative paths in get_path_component