Change how we load template resources so it works from files and jars.