fixes #39 (Rack::CommonLogger output is lost). based on cyx/shotgun#3098530