Fixed a small bug when trying to write the highscore file

The highscore file now correctly is written to $HOME/.local/share if
XDG_DATA_HOME isn't set, and not just to $HOME/.local.