add/remove-shell: use O_TRUNC instead of O_EXCL