Fixed build error when running with Mono. Improved handling of missing configuration.