Add pear shell timeout

This is rebase of this issue to current master branch
https://github.com/opscode-cookbooks/php/pull/47