better but still not perfect bash_completion check