fix sed statement used to extract the date