Compute the SHA1 sum only for regular files

Close #85