Make sure dwim'd relative path ends in a "/" if the original does

Fixes #7296
Merge pull request #7304 from jimi-c/issue_7296_synchronize_relative_path

Make sure dwim'd relative path ends in a "/" if the original does