and make `cleanse-path' work for any platform's paths while fixing `resolve-path' checking to disallow paths for other platforms Closes PR 11891