Add line break after output.
Protect against missing HOME env variable.
Move ternary operation out of argument list.