Added improved detection of required composer packages.