composer: fix autoloading by trying multiple locations