Added a util.IsDirEmpty function to check if a directory is empty.
Fixes issue #6

If a duplicate hash entry is found, then the file is copied to the error_spool
directory and an error message is generated.
Fixed an issue with the name of some files sent to the error_spool.