Fix code instrumentation to exclude all files outside of basePath

This prevents incorrect inclusion of Node.js dependencies that
exist outside of the basePath and cannot be excluded by the
excludeInstrumentation regular expression.