fixes OS independent path comparison