Fixed where logs are written to