Be more flexible about where sha1_hex lives