Added OS check to allow FreeBSD to work