'root' is a link to the input file, not the cache file name
Merge pull request #18 from chestersolutions/master

fixed wrong check resulting in compiling altough cache existed:
'root' is a link to the input file, not the cache file name