Restore zc.buildout compatibility

In projects installed using [zc.buildout](http://www.buildout.org) the eggs are stored outside
sys.prefix. As pkg_resources (from setuptools) is always used in such
projects it can be used there to get the path to the installed egg.

I think fixing #3 broke the compatibility with zc.buildout.