Note that because this is a console command, the default values of `basePath` and `baseUrl` of `AssetManager` don't work. So it's better to check if they are explicitly set.