Adapted filecheck of getdiff.py