relpath exception

relpath throws an exception if the start path and the to-be-truncated path are on different partitions on windows. This pull request resolves this by avoiding relpath and using splitext instead. Also results in more readable code.