private static String searchDirectories(final File[] paths,final String[] exeNames){
  for (  final File path : paths) {
    if (path.exists()) {
      for (      final File subDirectory : path.listFiles()) {
        if (StringUtils.startsWith(subDirectory.getName(),TF_DIRECTORY_PREFIX) && subDirectory.isDirectory()) {
          final String verifiedPath=checkTfPath(subDirectory.getPath(),exeNames);
          if (verifiedPath != null) {
            return verifiedPath;
          }
        }
      }
    }
  }
  return null;
}

private static String searchDirectories ( final File [ ] paths , final String [ ] exeNames ) { for ( final File path : paths ) { if ( path . exists ( ) ) { for ( final File subDirectory : path . listFiles ( ) ) { if ( StringUtils . startsWith ( subDirectory . getName ( ) , TF_DIRECTORY_PREFIX ) && subDirectory . isDirectory ( ) ) { final String verifiedPath = checkTfPath ( subDirectory . getPath ( ) , exeNames ) ; if ( verifiedPath != null ) { return verifiedPath ; } } } } } return null ; }
search thru given directories to find one of the given acceptable tf commands
