fix for when getlogin returns an empty string.