Tweaks to fix some glitches in textmate bundle