Fix a bug where the script crashes when run for the first time in an empty folder.
Crash caused by hashListFile not existing until after script has been run once.
Solution is to skip reading the hashListFile and checking for duplicates.