Fix ImageMagick check for Windows

Use both "which" and "where" to check for existence of ImageMagick