path: fix joining an empty path to a non-empty path