remove previous (file) target if build succeeds and generates nothing
better ocaml output on Target_failed error