Set licence to match file