Use forward slashes on Windows.
Wrapped set shellslash in an existential condition.