Reset `opts` var in `forEachSeries` loop

* reset opts on loop start because browserify modifies it
* fix up lint error
* add simple test to make sure multiple-file build with shim works correctly

fixes #94