Fix Ubuntu compatibility problems

Specify /bin/bash instead of /bin/sh since it is actually dash.

Use Digest::SHA instead of Digest:SHA1, Digest::SHA1 is obsolete and not available on Ubuntu.

Thanks to Brian J. Murrell for the fixes.