emma compatibility with gradle 1.0 changes

I made these changes a while ago that I think help.  I would like to get them back in the main.