fixed wring detection of imagemagick on windows, closes #417