Avoid repeating last entry after `cd .`.