It was using /var/tmp/composer/, now it places everything under a temporary directory that is removed when it is finished.