improved version command to show required versions of optional dependencies