fix else if bug

fixes a missing fi, fixes mixed tabs and spaces indentation
Signed-off-by: Sietse van der Molen <sietse@vdmolen.eu>