remove trailing slashes on target directory pathnames