Investors used to only like funding startups they could see nearby. Now with remote work, new companies in small cities are getting a big boost.