Make sure setguid flag is correctly set on mkdir