only writing if the file is different
Merge pull request #2 from SteveStedman/onlyWriteFilesOnChange

only writing if the file is different