US discount retailer Dollar General has booked higher half-year profits after it increased sales.