improved logic for extracting settings out of composer.json file.