sed error, shell env problem. fixed