[BUGFIX] Reverted old version of command detection from symfony history. We have some problems with new behavior.