Fix path to cloudinit directory
Fix path to cloudinit directory

The various path manipulations designed to search for the cloudinit
directory do not work with the current installation script, or when
heat-jeos is also installed. They also perform gratuitous manipulation of
sys.path (causing warning messages) and may pick up the cloudinit files
from a different location to the code that is actually running. Python
already knows which heat package we are using - just look for the directory
inside there.

This patch also tidies up the code for generating the user data.

Change-Id: I14add5f1670aea2562329ff1a1303320a35ff428
Signed-off-by: Zane Bitter <1899fff8e7db19a598ee9d835aa1a232f82ea264@redhat.com>

noironetworks/heat,gonzolino/heat,rickerc/heat_audit,pshchelo/heat,varunarya10/heat,citrix-openstack-build/heat,JioCloud/heat,dragorosson/heat,cwolferh/heat-scratch,takeshineshiro/heat,redhat-openstack/heat,maestro-hybrid-cloud/heat,cwolferh/heat-scratch,rh-s/heat,pshchelo/heat,pratikmallya/heat,rickerc/heat_audit,steveb/heat,citrix-openstack-build/heat,JioCloud/heat,NeCTAR-RC/heat,pratikmallya/heat,Triv90/Heat,miguelgrinberg/heat,varunarya10/heat,cryptickp/heat,Triv90/Heat,jasondunsmore/heat,openstack/heat,maestro-hybrid-cloud/heat,dims/heat,NeCTAR-RC/heat,dragorosson/heat,rh-s/heat,srznew/heat,jasondunsmore/heat,ntt-sic/heat,Triv90/Heat,srznew/heat,redhat-openstack/heat,noironetworks/heat,miguelgrinberg/heat,takeshineshiro/heat,cryptickp/heat,dims/heat,gonzolino/heat,rdo-management/heat,rdo-management/heat,ntt-sic/heat,openstack/heat,steveb/heat