Fix https://github.com/jessek/hashdeep/issues/303

This will fix https://github.com/jessek/hashdeep/issues/303 (and https://github.com/jessek/hashdeep/issues/165). I use the same method of obtaining raw device size as in file_types state::file_type().