fix target dir without subdir for erlydtl templates