Fixed execCmd function.

 This was causing nc to not send the command on the bot listen port.

Problem due to commit : ed911d4c6a0f4cb26032647017eeba8fdf7f044f