make rootdir replacement global
Merge pull request #8 from bobholt/globalRootDirReplace

make rootdir replacement global