Several bug fixes on build-sonar.xml:

- delete sonar-project.properties before generating it to avoid problems
- ignore layout plugins
- test if a plugin has a 'docroot/WEB-INF/lib' and containing jars
  before using it