Add doc type to email template.
Fix hubot shell commad path issues.

This commit makes it so that "hubot mail" does not fail because the
Rakefile cannot be found.