Fix regression in command name completion reported by John Darrington.