remove the temp directory and update the library