Ensuring .tmp is removed and ignored