Support for $HOME

This change retrieves the content of $HOME environment variable, creates a directory $HOME/.reicast (if missing) and then sets this path as SetHomeDir().