Added support for config path given by ENV instead of header.
Added error message if trying to write string when forced fileread.