Simplify code and fix path to composer.json, refs #6001
Simplify code and fix path to composer.json, refs #6001

remicollet/composer,SpacePossum/composer,erasys/composer,gencer/composer,fabiang/composer,alcohol/composer,andrerom/composer,nicolas-grekas/composer,localheinz/composer,hirak/composer,naderman/composer,stof/composer,fabpot/composer,stefangr/composer,floverdevel/composer,composer/composer,curry684/composer,pierredup/composer,vdm-io/composer,dzuelke/composer,staabm/composer,milleruk/composer,balbuf/composer,MoT3rror/composer,johnstevenson/composer,slbmeh/composer