fix autoloader logic to work more dynamic with composer installed version