making wordpress path using reduce because on windows path normalizes using backslashes (\)