nvram: improve argument check when program start