Inspect for required config and fix 'else' syntax