added check for running on FreeBSD