KARAF-3347 (improved protocol handling, added none Windows support).