Cramer's condition and Sanov's theorem