These conditions apply in the same way for Windows path styles with
forward slashes.
After D112289, the only remaining uses of real_path are in
preferred_separator, get_separator (and in remove_dots which doesn't
compare literal enum values though).