s/isfile/exists/ since Python doesn't regard a socket as a 'file'

Python doesn't regard a proper socket as a file, so I'd have to use exists here instead of isfile. Apologies for the minor oversight.