Fix bug log file not found when running on window