Only check the session save path is writable if the session handler is '...

...files'. Fixes #8053

https://dev.icinga.org/issues/8053