Fixed erroneous file flag in _popen.