Parse function names with nested vars

This takes care of parsing `${PN}` in shell function names, but not in python function names. It should be extended to python if that's allowed, but I grepped through meta-oe and found no python functions that actually make use of it.

This fixes #3