Bah, that should have been '#!/bin/sh' for both scripts, and it doesn't matter what shell you're using.