Simplify bash completion function