[COOK-4065] Convert system() to shell_out for better error handling