Script to watch files and run tasks