Adjust handling slashes in paths. Tested only on RedHat and likely does
not expose all possible problems. Commit as a checkpoint.