Don't use working directory to determine ROOT
Use __file__ instead of __name__
Merge pull request #619 from drkitty/ROOT-without-cwd

Don't use working directory to determine ROOT