Fix most (all?) pacman-related issues.

Addresses all of my comments in #96. Tested with the `Images` package and `imagemagick` dependency.