Fix #671, external option doesn't work with node modules

Looks like the glob matching returns an empty array if it's not a relative path, so node modules are not excluded as they should be.