Allow the completion function to indicate that the word should be completed as a filename by the shell. (cherry picked from commit eb724293) (cherry picked from commit 09f9831f)