Reinserted TARGETDIR variable removed by mistake.