Skipping reactions while script is running

Helps to solve recursive calls when the script itself modifies files
within the monitored directories.