Fix line number reporting for configuration errors