Added isValidDirectory() method to detect if required files are present in the user selected directory