fixed date-command
date --version -> GNU
else -> BSD