fixed error in bash completion (issue #524)

This can be fixed without enabling `extglob`, by using basic pattern instead of extended.