chess script fixed environment variables so logs save in the correct directory