Fixing plugin hook autoloading