Fix for missing global name __file__