Purging of output directory is optional (disabled by default)