dock:: fix run appinfo from cmdline failed.

using := on else block which leads to wrong scope.