chdir to right directory