SCRIPTS: Fix parsing of 'else if ()' construct

It forgot to set a flag, causing the following else (if any) to be dropped
and therefore the content of the following else block to be always
executed.