FileWriter serialization creates missing dirs