rebuild option fixed and enhanced

Fix bug concerning rebuild option
Complete rebuild command with names of datacenters