So the error /bin/bash: : command not found means TextMate can't find bash? weird.
Inside a TextMate window I get (lines split by me)
echo $PATH /Applications/TextMate.app/Contents/SharedSupport /Support/bin/CocoaDialog.app/Contents/MacOS :/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin :/usr/X11/bin:/Developer/Tools :/Applications/TextMate.app/Contents/SharedSupport/Support/bin
I also have a variable PATH set as follows
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin :/usr/X11/bin:/Developer/Tools
which is where part of the above path come from, I guess
Piero