Made retrieving username a bit more cross-platform