Mac fix for sed -r and date --date