Remove string comparisons when dealing with paths in Webpack config for better multi-OS support