Allow log_dir to be set to false in order to disable file logging

This commit allows a user to disable logging to a directory (for
example if syslog is enabled, in order to not log twice).

Change-Id: I814bf8199fcf57f976e95b9bbf872478694b9d3e
Closes-bug: #1282296