Don't crash when there is a leftover socket file

Previously, when there was a socket file in the current directly
and no server was running, 'hdevtools check' would fail with:

hdevtools: bind: resource busy (Address already in use)
Merge takano-akio's fix.