Fixes hashing of single files.

Resolves jbitor/jbitor#2.