fixing consoles apps that don't return lastUserInput like CMD.EXE