raise ConfigError when env var is a file