fix to pass search path for alternative gcc compiler and toolchain (ROOT-5384).