use correct form for duplicate command condition
compgen like linux added for Windows and full list executables available for auto-completion