[bin] fix default distribution option value
[lib] add a test on distribution type
[lib] deployment: exit if no more hosts available