Avoid crashing if a short relpath is returned
Correctly propagate error
Merge pull request #10 from rasky/fix_short_rel

Fix panic on short relpath