Fixed tmpfs mount command, and added code to change permissions on /dev/shm