Made the plugin compatible with Redmine 2.x