Added check for file changes
* replace only changed files