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
livebuild: Make LIVEBUILD_ROOT a variable

Signed-off-by: Jan Blunck <jblunck@infradead.org>
livebuild: Skip top-level directory if it matches recipe name

If there is one directory with the recipe name in the tarball lets skip
into it before we check the configuration.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
livebuild: Make LiveBuild.pm ignore recipe name base directory as well

Signed-off-by: Jan Blunck <jblunck@infradead.org>