added condition so '\' in gemPath are only replaced in Windows