Added a test if the variable exist in the file before extracting it. It is needed for some versions of ncks (the one at obelix).