Add Phar archive
Fix test
Improve phar builder