Make cscope_gen a little bit more robust