Change dir before checkout