replaced sha1sum with a more portable version