fix package name extraction command