Expose current script name in the proper way.

SCRIPT_FILENAME didn't work, becuase it changed whenever we did a new import.