target dir is removed if already exists