fixed logic for composer installation