Create the target dir if necessary.