Create target directory if necessary