fix of cog for c/c++
ignoring generated c, java folders and pyc files