Made PAM detection more resilient, and catching some more errors.

Force PAM on platforms where it is known to exist, make it optional on
others. This also switches out the test for usermod tools with tests
for PAM instead.
Don't rely solely on PATH variable when configuring.
Merge pull request #1077 from kacfengine/configure-fixes

Some fixes making pam detection more resilient.