Make shm/: a bit more tolerant