Use __FILE__ instead of __dir__ for better backwards compatibility