Check if the inputDirectory exists before run the plugin
Started support for subfolders