Update MageLoader and the corresponding calls to use the codepool option