fixed checking for C files