Prevents invalid userconfig/moduleloader hook config and fixes issues surrounding that.