Improved setgid bit setting on directories