Move write check into pkgcli_update()

Suggested by:	Matthew Seaman