notify: generalized the state file name so it can be used in bash script