Tools: better handle commands entered in consoles: correctly identify the parts
Small correction