fix #19 Show index of error in error log and remove human diff.
Fix the crash of page when couldn't get all files.
Merge pull request #20 from zhchbin/master

Fix the crash of page when couldn't get all the files.
Updated windows only code

Updated windows only code with cross platform code for portability and
other tiny fixes as well. #21
Merged Upstream