Allow formatting for SSH session filename
Generate SSH session files names generate with custom arguments.
- Use the same format arguments as pre/post command
- Add a %d format argument for current local datetime
- Refactor into a helper for further reuse