Fix path when expanding ImageMagick