Replaced path-finding regex.