USER -> LOGNAME for consistency

Don't remember why we use LOGNAME. Also ensure that it's set.

Created by  Eelco Dolstra  on October 18, 2017
SGFLU2VSP5ZBZ5J22XZHFYS2KQBUFQ6NIIIP42GGYVSIQMRPMUXAC
Change contents