File: fixes to exists() and isDirectory() functions for Windows
File: fixes to exists() and isDirectory() functions for Windows

These fixes remove any trailing slashes from path names which caused the
stat function to fail.

AlloSphere-Research-Group/AlloSystem,AlloSphere-Research-Group/AlloSystem,AlloSphere-Research-Group/AlloSystem,AlloSphere-Research-Group/AlloSystem,AlloSphere-Research-Group/AlloSystem