insert free var injection code to correct place

webpack/webpack#167
1.0.0-rc7