Classical resolution of singularities in dilaton cosmologies