Made temp file path platform-independent. Added gitignore for logs