chksession: add support for generic --generate=DIR and --wrap-sessions See mgabz #2740. This also allows migrating other users to the more readable and robust versions, avoiding the use of hardcoded directories in chksession.