Properly re-register commands on reload