change directory before checkout