Remove travis-logs logic to a separate script