[Bug 45725] New: if exist fails if path has trailing slash