Fixed compatibility with Linux / mac

An small change to treat / and \ in the same way.