Use /dev/shm only if available
DRY out SHM_DIR detection
prompt - use case instead of "=~" for checking against NFS_MOUNTED