Fix FreeBSD script