handle empty extra_package string gracefully