Add support for finding load time warnings

Extraction of the supporting code from rspec/rspec-core#1654.
```Ruby
root = File::SEPARATOR
lib_path = %r{#{root + lib}[^#{root}]*#{root}lib}
load_path = $LOAD_PATH.grep(lib_path).first
```