fix current working directory issue.

lib2to3's import fixer assumes the source code given to it is under
current working directory, so we have to cd to the correct directory
first and cd back later.