tmpdir, curl retry

* TMPDIR and check if directory exists to prevent mkdir warnings, use pushd/popd
* AND to configure/make
* curl --retry 5 (#24)