linux: Fix crash when we can't get the username. Closes #1472