Fix a glitch in the handling of the last path element in a -R path