With some more fiddling I did finally get my build command shell
script to work. Can't say I know why it didn't or why it finally did.
For what it's worth I'm on Mac OS 10.6 and ended up having pseudo-tty
off and line mode on.