hardcoded temp file replaced with File.createTempFile call

The hardcoded path /tmp/rtree.txt is (usually) not available on non Unix systems, breaking the build.