Auto detect install and savegame folder.
Some small cleanup and rearranging of functions, so it will be easier to port it over to other platforms like Mac and Linux.