Added creation of target directory (if non exists)