Append '/' if we're renaming a directory

Fixes #2