Workaround OS X quirk for shutil.rmtree

It doesn't like paths that end in "/."