Fixed detection of global configuration (Issue #34)