Check template dir exists before copying

template dir isn't in 2012.2.3 and older so script goes boom