unformat dirname added to templates