revise test to use nokogiri to parse anchor tag

The reason is that under Ruby 1.8.7 hash order is unreliable and unknown, so comparing anchor tag strings directly wasn't working (because the order of attributes depends on the order in which we cycle through the original hash)
changed Rakefile to get TextMate path from environment variable that the user must supply