Updated to work on FreeBSD.
- change path to /usr/local/bin/bash
- getopt is /usr/local/bin/getopt (gnu version)
- date -u rather than --utc