Replaced slashes with file.separator in order to pass a test on Windows

Unfortunately I cannot test it on Linux, but it should be OS independent now.

Signed-off-by: Diego Costantini <diego.costantini@gmail.com>