Make output formatting consistent between bash/scala