Support builds out of tree
More robust version fetching
Add Debian/Ubuntu packaging support