Use QDir::separator() where paths might be generated for Windows

Change-Id: Id7afc11cd58f671ff5ce629cfc29bdb6d9567dc2
Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>