Update get_sha1() to grok extended format.