Added second argument to 'there is no directory called (.*)' so it can accommodate the opposite test - may not be consistent with best practices