fix(system): ensure tempfile is on same filesystem