remove temporary files to prevent crash on rebuild