add pkg.repo_root() method
check and traverse the options.cwd to the right directory, the root of the current repositoryy