updated to add suport to custom fallback template dir