Fixing .NET FileUtilities.FindFile() to expand environment variables and search for invalid characters in PATH directories. Fixes issue #5032.