Make sure target directories exist before copying

Signed-off-by: Drew Moseley <drew_moseley@mentor.com>