Use `compgen -f' instead of `compgen -o default' as the default completion method.
It should be the same, but the later does not work on old versions of Bash (2.x) I'm using.