Make sure composer is downloaded before trying to install it.