Fixed file type detection for C++ at work.