fix for windows systems using \ as a path separator