fixing tc build, misunderstood bash parameter expansion