Update wait_for module to handle directories as path parameter.

Currently, wait_for module only handles files passed as the path parameter. This pull request allows directories to be passed as the path parameter so that wait_for can check their absence or presence. 

Updates the docs to indicate that directories can be handled.