Bugs fixing and performance tuning

* Import Open-Source "ZetaLongPaths" to fix the long path issue.
* Fixed directory checking bugs.
* Performance tuning for the files / directories comparision.