fix(ischanged) make tmp directory first and then do things