Small update of file comparsion function