Fix: inconsistent result type when calling relpath.
Test case demonstrates inconsistent common_basepath return.