Smarter installation based on the contents of the ./var directory.