[cs/java] clean output directory of old files
Merge pull request #3613 from nadako/clean_out_dir

[cs/java] clean output directory of old files