Fixed saving build logs in mongo