ignore stray else and endif in scripts