If it is clear the source directory is the root directory of the image the variable should be named root_dir not source_dir
a rewrite of the current kiwi from https://github.com/openSUSE/kiwi