Add handling of Debian bcrypt fix and fallback to sha256 if check fails