Modified pam_sm_close_session to read cmd with pam_getenv and pass to _pam_account function
First iteration of passing cmd resulted in segfault, trying again