Move the check for working directory existence after the precondition check. This allows commands that have a working directory that is only created by an indirect precondition.