refactor zypper commands and use execute for better output