Issue172 unix tmp paths

#172 All direct references to /tmp and /var/tmp are removed. Should make the code Windows compatible.