Fix example script's reload function

While loading the script for the first time __FILE__ is set to the value
we expect, but after a reload it is replaced with "<main>" that cause a
fatal error afterwards.