Fix handling of paths in zip imports in galleries app.