chdir out of temp directory

When I install from github, my tempdir is not removed because I'm still in it.