Simpler way to allow spaces in the filename
Improve the completion, fix the indentation

- if the current word starts with -, complete opts, else complete filenames
- don't complete anything after any of the options in $opts_nocomp is given
- don't complete options after -- is given
- don't complete anything after a filename is given