sort use statements
switch to File::stat
switch to 'mode'
preserve setgid bit when chowning

Due, I think, to root_squash on NFS the setgid bit is not preserved when
chowning even though it would be on a local filesystem.  Therefore, this
should more correctly model Linux's default behavior.
sort use statements