Chdir to rootDir

@erictune what think?