Fix inferred path for .so files if importing in same directory

This fixes the inferred path for the .so files when importing the module from an interactive Python shell in the same directory. (In this case, `__file__` does not have any path information and `os.path.dirname(__file__)` returns an empty string. We solve this by using the path `'.'` in this case.)