configure: shell portability improvements
configure: shell portability improvements

Always use $() instead of ``, which may be difficult to parse.
Avoid double negative !-z.
Avoid -a; use && instead due to bugs in primitive shells.

msharov/loginx