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
- use lib* to catch lib, lib64, etc (#443)
Use the proper gemdir setting when --gem-gem is specified
Allow JSON >= 1.7.7 to be used with FPM
- replace ftw with the always-terrible net/http  for continued ruby 1.8
support (ruby ftw uses lots of APIs not available in ruby 1.8 and not
provided by backports.).

(╯°□°）╯︵ ┻━┻
Use the specified gem command to obtain the gem bindir
Merge pull request #473 from torrancew/allow_json_18

Allow JSON 1.8 to be used with FPM
Merge pull request #465 from oker1/pear_data_dir

Pear: custom data dir
Merge pull request #474 from torrancew/use_gem_env

Use the proper gemdir setting when --gem-gem is specified