Set the write directory to a writable directory