Fix license issues

It is now possible to register the license and the exec only runs when the license is missing and not on every run.