Fix pip install where __file__ is set to 'setup.py'

This is a trivial fix, the pypi installation via pip fails because pip is changing to the build directory and then running 'setup.py', such that os.path.dirname(__file__) becomes '' .