Fix path normalization of "/.."

Closes #2404.