check of the server sends a directory

otherwise cgo would print every line prefixed by "miss[]" no matter what
kind of data it is
Display error messages
fix make install if $PREFIX/bin doesn't exist yet + use `install`