base: use hwaf_pkg_name to get directory-indepent package name
project: 0-arity for hwaf_pkg_name, also take a Node-or-a-string