fixed detection of symref-tool, so that global is detected