bash-completion: Fix/improve generator names extraction