Fix problem that code completion doesn't work in subdirectory #45