fix issue where output dir was not resolved properly.