remove tmp directory before symlinking