Prefer composer.json as detection method