Bug fix for sub directories and some optimalisations for file hashing and  localfilechecker