Update genreadme script to detect package.

Use some shell scripting to extract the Go package path for godoc2md.