Change directory where data is written to.