Save session key in user's home directory, platform independent