Fix `slc --version`

slc --version will only show version of dependencies that slc commands
directly depend on.