R package installation now cd's to valid directory

Fixes #27.
Merge pull request #33 from jrrideout/r-package-fix

R package installation now cd's to valid directory first.