Some improvments: replace dist by release, get default values, add some function
use a var for localrepo