Fixed the cache creation when overriding the base path in debug mode
Set the migration key even if we don't have anything to migrate