Improved robustness of set_variable_to_stdin().

Such function behaved somewhat too... zealously. Its spirit has been
suitably tempered to the lukewarm fires of mediocrity with which I'm
better accustomed.