Print optional package version numbers in test output

This PR prints which optional packages are installed and their version numbers in the Gammapy test console output. This is very useful for bug reports from users.