cd to correct dir first