Use `basename` when comparing two bundles.

All files are in the same directory anyway. This reduces amount of false
positives when rebuilding a bundle on a different machine.