fixes autoload problem with commands for just installed packages

Now the event occurs after autoloader is generated and refreshed.
So we can run methods from PHP classes which just have been installed.