A resolution of the cosmological singularity with orientifolds