cscope: simplify logic to skip nested functions
fix typo in condition