update get-pkg-name to extract package name from buffer name
fix can't match abstract_* issue