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.
To make sure it's enabled.. in case someone changed it to 0. I assume that if someone ran the script he wants it to be switched back on.