getLogDir() test: remove /tmp dependency

This change separates the getLogDir() test into several smaller tests and removes the dependency on the ``/tmp`` directory, which is not available on Windows systems.