Reliably detect parent shell in `pyenv init` (fixes #93)

Imported changes from sstephenson/rbenv#453.
Remove `PACKAGE_PATCH_STRIP`. Use `PACKAGE_PATCH_OPTS` instead.