Correct finding of api files for auto completition

This look like to be the bug why we see some time auto completiton of bindings and some times not.