More sed calls and chmod