Updated LCD detection script