add debugging for template path

without a debug msg the change in behaviour of 1.4.x and 2.0.3 in finding templates (1.4.x: <path> is enough, 2.0.3: <path>/detail) wouldn't have been found.
Thanks,
  Hermann