Somewhat fix bash completion

It will however match these as well:
  <app>]
  -a
  -h,
  <command>'

In order to completely fix it, we should rewrite the script.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>