use correct out-path with --update flag
Merge branch 'fixupdate'
add missing import of CmdError and log