Fixed subtle bug - was generating checksum for entire input directory rather than just the file in question.