Fixed a bug in detecting out-of-root module paths.