Make basePath platform normalized

The instrumentation filter in `lib/util` checkes that a given resource path begins with `basePath` via a simple string match. Non-normalized basePaths -- e.g., those that contain extraneous slashes or that end with a '/' on Windows -- won't be properly matched.