Patches for np_runcmd framework [sf#1218232] [#481]