improvements on bash completion