Make setup script work on FreeBSD