Inputdir sanity check
Add a sanity check on the input directory to make sure it exists before attempting to access it. Return error if the directory does not exist.
This will prevent the process from hanging if the directory its supposed to watch has yet to be created on a node reboot e.g.