LCGFunctions: fix setting of BINARY_PATH
Deduce the BINARY_PATH of a module from the actually found binary. Otherwise we may end up finding the wrong path if there is a directory of the same name. E.g. with the following layout
include/gdb/header.h
bin/gdb
the previous code would set BINARY_PATH to the include directory.
Somewhat surprising this didn't cause problems so far