Don't discard initial ".." when there is more than one such component in the beginning of the path. Closes #18800.