made has_ghostscript a method, using it from test_imagefile
Merge pull request #601 from wiredfool/gs-test

Fix failing test when ghostscript is not installed.