Fix pathing bug with non-flattened structure. Bump version to 1.3.1