Use get_username when available, fixes #5