Buildroot / path fixes

Various fixes needed to install xcp-sm in different contexts, particular Ubuntu, CentOS and Debian