#79: fixed regular expression for detecting whether endpoint is on local machine