add workaround for posixpath.relpath bug in 2.6