rename .tmp to build