self-update composer if there is a composer.json file