Fixed path errors on non-Windows platforms