Chdir to correct directory