Added errorhandling for missing ghostscript.