make path env var expansion platform independent