Ensure target directory exists