Use shorter, relative file names when switching.
Remove trailing backslashes before globpath().