Check validity of files or directories before firing component.