Fix macro expansion corner cases

Behave like rpm in regard of macro borders
add recipe2buildtype function, use it in expanddeps
fix regression introducted with --directdepsend-- support
rename packtype to buildtype
fix module integration check
do not print "WATCHDOG MARKER END" twice when switching personality