added repo param to getPkgs to facilitate on.exit setwd to repo path in getPkgs, closes #72