Added error catching to sha1sum