env var err should be returned

Currently, if the computeVar() call rturns an err it's lost.  The actual 'return value, err' line cannot return an error ever, because the err value is tested above the computeVar() call in line 150 and would have returned already.  With this patch the env var computeVar() err is returned correctly.