Properly check for libpam.so dependency