rustpkg: Handle requested versions in `extern mod` directives properly

r? @alexcrichton Closes #8711