Fix cd bug in initialize scripts