updated dot net check, $ must be escaped