Improve autoloader initialization