shutil.ignore_patterns does not want trailing slashes

A trailing slash in a directory name is essentially a noop unless
the directory name itself contains a trailing slash.