define `__file__` in config files
Merge pull request #3320 from minrk/configfile

define `__file__` in config files