ShellImpl.getEnabledCommands improved