Fix another problem introduced in 72f5400: do not 'cd' to %root unless that directory exists.