Fix for myevent_pathend() not firing.

Fixes https://github.com/enigma-dev/enigma-dev/issues/876#issuecomment-65959903

Taking into account the comments given, I was able to just place this nicely into the extension_path struct.