[COOK-2536] Set the group ownership correctly in BSD

Details in the jira story - COOK-2536.

Tested this on freebsd 9.1