Added more roboust check for the --numstat in commits. Additionally, fixed a bug where if a file name has \ characters in the end it could possibly break the reader