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 not to login twice.

Change-Id: I0e64cf62f556d40d9243b05b4d0253dddc42b686
Closes-bug: #1282296