Add error catching to sha1sum