Handle older versions of netpbm on Ubuntu.