Don't crash if 'HOME' is unset in env. Bump version to 1.3.5.

Fixes <https://bugzilla.wikimedia.org/show_bug.cgi?id=62240>.