A simple function that periodically checks a folder for changes and runs a function when a file in a "watched" directory is changed