lscgroup: Fixed too many '/' characters on output
lscgroup: Fixed too many '/' characters on output

Fix the calculation of path prefixes and prevent addtional slashes in
libcgroup output.

I.e. instead of:
	$ lscgroup cpu:/
	cpu:///
	cpu:///system

show:
	$ lscgroup cpu:/
	cpu:/
	cpu:/system

Signed-off-by: Jan Safranek <a7f4b96ffdd515ecef00f117294da18555749b0b@redhat.com>
Acked-by: Balbir Singh <ac7b77b73f9d2cc0faddd296218dde0558e170e3@gmail.com>

rafalmiel/libcg,rafalmiel/libcg,jrfastab/Linux-cgdcbxd,jrfastab/Linux-cgdcbxd,jrfastab/Linux-cgdcbxd,rafalmiel/libcg,rafalmiel/libcg,jrfastab/Linux-cgdcbxd