added ensuredir to target
updated version