fix clang_complete check
make more smart