Fix Atlas detection on FreeBSD