import subprocess
import sys
import os

output = str(subprocess.check_output( ["zpm", "install-package"], universal_newlines=True ))

if ("(c) Zefiros Software" not in output or
    "Zefiros Package Manager" not in output):

    print( "ZPM failed to load correctly!\n Output:\n", output )
    exit(-1)
else:
    print( "ZPM successfully installed" )
@@ -33,16 +33,52 @@
 ort os%0A%0A
+for cmd in %5B%22zpm%22, %22premake5%22%5D:%0A    
 output =
@@ -108,21 +108,19 @@
 utput( %5B
-%22zpm%22
+cmd
 , %22insta
@@ -161,16 +161,20 @@
 rue ))%0A%0A
+    
 if (%22(c)
@@ -209,16 +209,20 @@
 tput or%0A
+    
     %22Zef
@@ -260,16 +260,20 @@
 tput):%0A%0A
+    
     prin
@@ -329,16 +329,20 @@
 utput )%0A
+    
     exit
@@ -350,14 +350,22 @@
 -1)%0A
+    
 else:%0A
+    
     

Check both commands