Fix Issue #5140 , ceph init script failed to determine correct hostname for remote osd

When using /etc/init.d/ceph -a start, and if you have osds spread across multi hosts. The init script failed to run correctly.It will put all osds to the first host,and failed to calculate the default weight according to available space for remote osds.

This patch fixed this issue