[COOK-3643] Fix freebsd

https://tickets.opscode.com/browse/COOK-3643

Some changes I made to get this cookbook to run correctly on FreeBSD.