Only wait on the condition if there is at least one user of the cwd.

Fix issue #17.