Added proper exclusion check during automatic update