Fix checksum calculation with DESTDIR installations