Hide license unless it is required

Fixes #827