Fix broken dlexec on linux
Fix broken dlexec on linux

Tempfile dlexec was broken on linux. Get a file is busy error if we
keep the popen within the with block presumably because the file's file
descriptor is open so we move the call outside the with block so the fd
is closed.

mossberg/poet,khanhnnvn/poet,ihorlaitan/poet