Fix freebsd

Some changes I made to get this cookbook to run correctly on FreeBSD.