ensure paths are created in a cross platform way