Client/Server Misc fixes and allow for accurate detection of modified files and the detection of whether a path is a file or directory