Fix code
Make Explorer plugin work again with named pipes

This is a temporary hack, which needs more refactoring.