Make sure target directory exists