gitstats: Replace check_file with checkFile