fixed DaemonLogger at Ruby >= 2.1.0