fixed ignoring of file validation rules

Currently for example if 'only' rule is present then other rules are skipped since elseif's aren't executed