Changed method to test for nologin shell