[Engine] Error message only show name of the script.

Added a nameFromPath function.