Skip if plugin not defined or the directory is empty