Fix rebuild to allow jenkins to specify