Fix staleness check in generate-module mojo.

It turns out BuildCOntext#newFileOutputStream does *not* do an internal
check before writing, as I assumed it would.

Fixes #6
Fix hasInherits computation in generate-module.

Also skips generating <inherits> for empty META-INF/gwt/mainModule.