rustpkg: Search for packages correctly when using the rust_path_hack

r? @metajack