Check if tr is present, and fallback to awk if not