Okay, wow.  I was totally making a mountain out of a molehill, there.  Talk about underestimating the capabilities of /bin/sh.  Should be working now, for the most part.