fixes #1 - Deal with file descriptors from tmp module