Allow completion scripts to complete filenames.
Make the shell completion glue more robust against things like empty words, the '--' token, etc.