Added checks for FreeBSD too