using -d to end a job; new today for date; fixed ruby 1.9 issue