don't create a hash file in cache folder for every header
create hash of hashed headers instead of just hash of header file names
other minor fixes
indentation
for hashing use the compilation parameters only instead the whole command line