accept only directories have config.xml file to prevent too many IOExcep...

see https://gist.github.com/olamy/9773108
I have a LOT LOT LOT of IOException which slow a lot Jenkin start