build: Another fix for UNIX socket detection

Change-Id: I0e9f4f191e0c3e34f1203adf7a3947923cddc94e