I hadn't realized that the default shell on Ubuntu (since edgy) is dash. Thats right, its with a 'd'.
Dash as Bin sh
I had noticed this before but never really thought about it, until it came up with regards to broken scripts.
Here is Mark Pilgrim on this.