FileWriter now creates all necessary directories