util: teach os update packager to propery show usage hints

Change-Id: I81d6314e3118828807555275eceb2068a0b9553a
diff --git a/util/nanohub_os_update_prepare.sh b/util/nanohub_os_update_prepare.sh
index 3aa30d4..08b55d7 100755
--- a/util/nanohub_os_update_prepare.sh
+++ b/util/nanohub_os_update_prepare.sh
@@ -58,8 +58,6 @@
 #create temp dir
 stage=$(mktemp -dt "$(basename $0).XXXXXXXXXX")
 
-#save update to file in dir
-cat > "$stage/raw"
 
 #sanity checks (on the user)
 if [ -t 1 ]
@@ -80,6 +78,10 @@
 priv1="$1"
 pub1="$2"
 
+
+#save update to file in dir
+cat > "$stage/raw"
+
 #pad update to 4 byte boundary
 t=$(du -b "$stage/raw" | cut -f1)
 while [ $[$t%4] -ne 0 ]