Set Matching Regular Expression Based On Platform

Change regular expression to match either "/" or "\" based on
the platform.