Remove getLoginName calls

On some systems a call to getLoginName results in "does not exist (No such file
ore directory)".