mock textmate for testing script