Fixed generation of target files for FileWriter