Ensure we move pear cruft out of the way prior to php installation, so that pear installs correctly

This uses the same method as homebrew-php:
It moves the affected pear config files out of the path to a backup
location, wraps the installer to catch exceptions, and move files back
and rethrows the exception on failure
Extensions really need the version of php installed before we try to install them...