Fix uniqueness check in launcher

Fixes segfaults in 32 bit systems.