chdir had to happen within the Stat class
Merge pull request #1 from railsrumble/use_repo_class

chdir had to happen within the Stat class