fix custom channel discovery
make path fixing broader for packages like PHP_PMD
add option for custom data dir
pear: catch encoding errors during replacing staging path in files
Merge pull request #465 from oker1/pear_data_dir

Pear: custom data dir