Ensure argument to `test -n` is quoted

It seems that an empty variable is not passwd as such, but is instead elided,
meaning the test will always evaluate to true if not quoted.