import grp in try

Windows has no 'grp' module
fix import os

somehow I changed import os to import ps

Fixed it
Merge pull request #4113 from UtahDave/fix_win_cmd

Windows has no 'grp' module. Put import grp in try statement