Set COMPOSER_HOME environment variable to the temporary directory
Added --optimize-autoloader option to the update command
Added functionality to make sure the temporary directory exists
Added functionality to format the merged JSON