fixing output path for date command