[bugfix #909] cache shell calls to ImageMagick

Only retrieve `which convert` and `convert --version` once and cache in
text files in cache directory