Fix diff specific sha1 command. Fixes #347