A better bootloader code

the new code checks for the current theme so it doesn't need to be touched if you change your theme.