set default backend to a non-X backend

 and switch X on if no output-file is given (fixes #312)

Also handle exception if output-file is not in the right format