tmp dir cleanup in `Developer` and fix file overwriting.