Correctly handle chown with group given

Fixes: https://bugs.eclipse.org/bugs/show_bug.cgi?id=425919

@purplefox please review