fixed #19: permanent duplication of directories