Fix generation of wrap scripts.

I'm honestly not completely sure how this worked before.  Perhaps
only on my local installation?