Fix path conversions in a lot of places