bootstrap/template.py: add sha1sum support