Fix detection of 'config-dir' in 'extra' section of composer.json