Can you just try something else. Pass templatedir into templateFile and do

#include "$templatedir/hints_via_ajax.tmpl"

I want to know if this will work. If so, it is even better solution.