[bash] fixes to completion and cleanups to config