Avoid error caused by __FILE__ deprecation

Tested on elixir v0.12.4.