Seems my comments are gone because of your new commit.

We should not assume a specific directory structure. The configuration file should be specified via an extra param. The file path is relative to composer.json. You may use `getcwd() . '/' .  $configFile` to get the absolute path.