Bad target directory - composer can't load classes