fixed autoload script to work when inside the vendor dir