Nicer method for getting the shasum

A small tweak, a nicer way to get the shasum. One line as opposed to two and easier to read.

Removed trailing whitespace and added EOL at EOF.