Fix distro autodetection
Since !223 (merged), we only attempt to autodetect the distro to use for PAM config and distro hooks if the distro has been manually specified. Oops. We should of course autodetect only when the distro has not been specified.
CC @3v1n0