consider currentFile when searching for global symbols

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>