improve update batch

Do not delete the DLL every time.
Build only when it is needed.