Correcting the logic used with writeall to save the file if they do not exist or if the command was called with /write-all.