core: Fix a path generating bug in the Autoloader.