NOBUG: Avoid a notice caused by undefined $CFG->libdir

MDL-47195 introduced a new PSR0 autoloader and a new
requirement, needing libdir to be defined. This patch
just fulfills that new requirement.