`os.path.relpath` should also make this conditional string trimming unnecessary…