Allow building from a different directory than the repository root
This fixes all the issues we had building dls in yocto that came from dls assuming it gets build inside the repository root.
For detailed explanations please check out the commit messages