Feature/validate action

@hkariti @erikzaadi  the idea of this fix is to first check whether an action script filename is configured and only then do things like enable it. This in case the user configured an action script but disabled it, in which case we don't want to enable it by accident.