Fix handling of empty files in type command.
Merge pull request #29 from calmofthestorm/type_file_bug

Fix handling of empty files in type command.