fix module creation

* ensure that Gruntfile.coffee is properly skipped
* fix duplicate ']]' after module insertion

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>