Parse function names with nested vars

For instance, pkg_postinst_${PN}

Fixes #3