FIX: Now correctly locates the template directory regardless of the plugin file's location.