Fix for github links to add ons: resolves issue #238

This should fix the Github links for add-ons.  Instead of checking for directory names, we're now checking file names.

Additionally, we weren't handling the links for classes that only had functions, not methods—that's resolved as well.