Mount /dev/shm as a tmpfs.

Fixes #1122.
Merge pull request #1126 from karanlyons/patch-1

* Runtime: Mount /dev/shm as a tmpfs.