The first error is that the default master for .LRN should be set in the install.xml file, not the install callback. This provides an obvious place for people to change it with their own custom master.