[PATCH 1/3] cmd: fix return code of 'sf write' and 'sf read'