Bugfix for parsing the buildfiles

This fix is for a situation where identifying functions in buildfiles can fail if there are similarly named executables found from users path.