let's use os.path instead. Specifically, I think [normpath](os.path.normpath) is what we want here.