Minor change to ensure R modules is correctly referenced; update temporary direct to actually point to /tmp/