Match only the first line of the path