Socket.pm: Fix detection and deletion of an existing socket file.