moved GetModuleFileName to TRI_LocateBinaryPath