motd: use perl instead of unportable coreutils

FreeBSD has neither `stat -c` nor `date -d`.