Adding cd and chmod calls