it is not anymore necessary to add an empty source to purge directories
new style for 2.7
correct variable naming