switched from boost::variant to custom variant

Now using “custom” variant where a std::string is either the filename
or the buffer with an additional bool flag