bash completion check more friendly on  non os x