Change permission of $tmp_file into 0644

`File::Temp::tempfile` create a temperary file which has __0600__.
`/etc/hosts` is __0644__ by default.