Clean up hash parsing

- md5sum does not need to be called from stdin
- use awk instead of cut, shorter
- wrapping double quotes around the command substituion is not necessary in this case