Minor fix when relative paths are used with -debugMode