Added template toolkit caching
Validate if the file exists to validate if file has been changed before rewriting file