Fix pods based template lookup.

Thanks to @machty for working through the fix with me.