Update cowboy middleware env tuple

Follow the new env tuple standard for cowboy middleware
Fix #62