runtime: add support for internal package and fix go get