Fixed some indentation issues.
CORE-4804: Added guards against trailing slashes for renames, moves,
deletions, and restorations.