BUG-1200 fix external run.sh for the same logic of checking arguments