Simplify the selection of date command

- use egrep patterns to detect BSDs in one ifeq
- use seconds-since-epoch as input for BSD date (-r option)
- get seconds-since-epoch from git log with "%at" format string

This way it is not neccessary to install GNU coreutlils (to have GNU date) on BSDs for running the testsuite.