Using config instead of args to check log file and daemon mode