DDF-399 fixed application install/uninstall to wait correctly