Merge PR#48: replace command module running mktemp with tempfile module