pstoricohddst-gdi: make DEBUG an environment variable

More useful than editing the script to get debugging.  Also remove output dir
only if DEBUG != yes

Signed-off-by: James Bottomley <JBottomley@Parallels.com>
diff --git a/pstoricohddst-gdi b/pstoricohddst-gdi
index 9db3b13..1e10679 100755
--- a/pstoricohddst-gdi
+++ b/pstoricohddst-gdi
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # Debug mode: change to 'yes' to enable
-DEBUG=no
+DEBUG=${DEBUG-no}
 
 function log() {
     [ "${DEBUG}" = "yes" ] && echo $* | logger -t "$0[$$]"
@@ -177,6 +177,7 @@
 
 }
 
-#rm -rf $uid;
+# only remove the output dir if not debugging
+[ ! "${DEBUG}" = "yes" ] && rm -rf $uid;
 
 exit 0