Fixed PEAR packages mirroring

Fixed issue https://github.com/composer/composer/issues/3018 by dumping PEAR packeges in correct format to allow Composer to install PEAR packages correctly.