Only wait on the condition if there is at least one user of the cwd.
Remove copy/pasta in client.cpp