Fixing autoload logic so that it works inside another project