use new globals instead of $sourcedir

btw, why don't you use constants in favour of globals for the directories?

Signed-off-by:Thorsten Eurich <thorsten@eurich.de>