import grp in try

Windows has no 'grp' module
fix import os

somehow I changed import os to import ps

Fixed it