-statedir option added

If no Statefile option defined for any Pattern in configuration file
AND `-statedir` was given, statefile name would be automatically
generated from pattern; the file would be loaded/saved to/from directory
specified.