Just skip trying to match for the path separator explicitly (instead of making it match either a forward or backwards slash), simplifying the test a little.