better handling of adding local users, case insensitivy of user/group input, misc lint fixes