[PATCH 4/4] [programs\cmd] Fix statements after 'else' inside for loops