Redmine#3905: acceptance test for perms on a directory with a trailing slash

As requested in https://cfengine.com/dev/issues/3905