Fixes (and adds tests for) _components on PY3

u'.' != b'.' on PY3
Fixes (and adds test for) rel_path_to bug

'.'.rel_path_to('.') raised UnboundLocalError.