Write logs in log directory

The crash.log file was created in the working directory, requiring users
that had installed the game to run it with augmented privileges to be
able to create the file.