Use "mount -o remount" instead of "umount" and "mount /dev/shm", which results in emptying this virtual file system.
Changed paths: