Added space for elseif's, fixed file modes