Fix: Suppress unnecessary trailing / on filenames.
Kludge: On Windows, self.app.hasPendingEvents() always returns True. ???