WIP: Don't reinstall unless necessary

Possible solution to #119.