added extra parameter to generate package for specific directory in repository