Check whether the working directory exists.