Clean up get_dates.rb by updating period_start_end to use the previous month directly.