Make multi-app-cache tests work again
Make migrate command recognise prefixes and 'zero'.