used global $baseDir

Signed-off-by: Jevon van Dijk <jevon@atabix.nl>