On-Shell S-Matrix and Tachyonic Effective Actions