Parsing DOCKER_HOST env variable for Docker connection

I saw there was an older PR with the same fix, but apparently in Coffeescript...? I couldn't seem to find any Coffeescript source, so I'm guessing you guys converted? Anyway, here is a PR with a fix for the current source. Please merge or at least fix this issue cause it's really annoying :panda_face: :+1: