Automatically determine system paths for mogrify, ffmpeg