Dark energy in perturbative string cosmology