enhance 'download' to support puppet file server