Fix issue #165: Emacs temporary files cause DCD to crash for import auto...

Import autocompletion causes dcd-server to crash.

This is nearly the same fix as for issue #135, and it might be better to call a function that does this whenever checking to see if something is a file. Since that would entail quite some refactoring and maybe reorganising the code, I didn't do it.