Fix ResolvePathCommand to support paths with a trailing /
Extend ItemCopyCommand to support deep copy