use preg instead of ereg
remove the PEAR check:
the way it was wouldn't remove it from the $required array, which would cause a 'Following packages were not available' error
on the other hand we would set PEAR to $packages anyway, so handling this the same way as other packages both simplifies the
flow and fixes the missing unset problem.
fix typo
remove the addFile for PEAR/Exception.php as it would be already added by the addDir call a couple of lines above
add these three files to the ignore list as they are already added after some magic applied