Pear: custom data dir

Debian has the data dir set php/data instead of just data, you can handle it with this option. I've also fixed a bug in the custom channel discovery, and made the staging path replacement broader, because some packages rely on it like PHP_PMD.