now updating sha1 of indexed file when it changes and correctly detecting if there were any changed files