fix require external module not working

This bug is introducted by commit https://github.com/gulpjs/gulp/commit/761da2990427b5cbd7aaee26448cb61a2edc3db7