diff --git a/router/java/src/net/i2p/router/tasks/InstallUpdate.java b/router/java/src/net/i2p/router/tasks/InstallUpdate.java
index 91456e8dd6680b4b6c265ddeea3ca27a80a3d03b..aa706c126f69abfa60a7783fc674949e93b2b1eb 100644
--- a/router/java/src/net/i2p/router/tasks/InstallUpdate.java
+++ b/router/java/src/net/i2p/router/tasks/InstallUpdate.java
@@ -202,16 +202,17 @@ public class InstallUpdate {
                 if (df.isAbsolute())
                     continue;
                 df = new File(context.getBaseDir(), fl);
-                if (df.exists() && !df.isDirectory()) {
+                if (df.exists() && df.isFile()) {
                     if (df.delete())
                         System.out.println("INFO: File [" + fl + "] deleted");
                 }
             }
-        } catch (IOException ioe) {}
-        finally {
+        } catch (IOException ioe) {
+        } finally {
             if (in != null) try { in.close(); } catch(IOException ioe) {}
-            if (deleteFile.delete())
-                System.out.println("INFO: File [" + DELETE_FILE + "] deleted");
+            if (deleteFile.delete()) {
+                //System.out.println("INFO: File [" + DELETE_FILE + "] deleted");
+            }
         }
     }
 }