Fix Ghostscript on Windows

I didn't actually try it on Python 3.3 because I don't have it installed. From what I understand 3.3 added ``shutil.which`` and discontinued ``distutils``.

I put it outside of the Ghostscript function so that it only has to be searched for once. But then I realised it'll probably still search multiple times depending on how things are imported.