move the sudo composer.phar self-update to before_install instead