Adds check whether ifmapcli mode is defined before pushin it into the command list