Add bash completion.
Some variables are renamed.