Added code to mount tmpfs to /dev/shm in rlib

Ecryptfs was complaining about not being able to write to /dev/shm