[JENKINS-23146] Handle changes to folder checked out to '.'