Fix two bugs: usage of RequestURI over URL.Path, and out of bounds when searching for import path