fix tr version strip regexp