Change \ to / in case we are running on windows.

Also make the "." regex global.
Consistent string quoting