Create log directory if it does not exist.