[Bug 21142] cmd doesn't handle 'else' in if statements