Add some basic debugging information and minor fixes.

- Bundles and Features indexed
- Duplicate content
- Use getenv() for JAVACONFDIRS