Update tmp file to get parent directroy