[cs/java] clean output directory of old files