Several improvements in auto-detection of exam removal.

Related to issue #34.