maven-helper: support BSD's stat(1)

As pointed out by Curtis Rueden, BSD's stat does not have a --format or
-c, but only a -f option, and the format parameters are incompatible to
GNU's stat(1), too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>